#!/usr/bin/env python3
# -*- coding:UTF-8 -*-
##########################################################################
# File Name: std_sort.py
# Author: cx
# Created Time: Wed Nov 13 22:56:19 2024
##########################################################################


def f(x):
  value = x
  def g(a):
    nonlocal value
    value += 1
    return f"{value} + {a}"
  return g

a = f(0)
print(a(10))
print(a(10))
print(a(10))

  

#f = lambda x,y,*e,**s:f"{x}+{y}+ {e} + {s}"
#print( f(1,2,3,4,5,a=3,s=5) )



#from dis import dis
#def f(y):
#  return lambda x:x**y
#g = f(2)
#print(g(1))
#
#g = f(4)
#print(g(2))
#
#print(f(2)(3))



#from dis import dis
#
#f = lambda x:x**2
#
#g = lambda x:f(x)**2
#
#print(f(5))
#print(g(5))
#
#print(dis(f))
